#include "tab1dialog.h"
#include "ui_tab1dialog.h"

#include <QSettings>

tab1Dialog::tab1Dialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::tab1Dialog)
{
    ui->setupUi(this);

    QSettings settings;
    int value = settings.value("Framing/maxDisplaySize", 1024).toInt();
    ui->spinBox->setValue(value);
    value = settings.value("PDXP/maxDisplaySize", 1024).toInt();
    ui->spinBox_2->setValue(value);
    value = settings.value("UDF/maxDisplaySize", 1024).toInt();
    ui->spinBox_3->setValue(value);
}

tab1Dialog::~tab1Dialog()
{
    delete ui;
}

void tab1Dialog::savedata()
{

    QSettings settings;
    int value = ui->spinBox->value();
    settings.setValue("Framing/maxDisplaySize", value);
    value = ui->spinBox_2->value();
    settings.setValue("PDXP/maxDisplaySize", value);
    value = ui->spinBox_3->value();
    settings.setValue("UDF/maxDisplaySize", value);
}
